package it.gaetest.web.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.UIObject;

public class UiBinderOne extends UIObject {

	private static UiBinderOneUiBinder uiBinder = GWT
			.create(UiBinderOneUiBinder.class);

	interface UiBinderOneUiBinder extends UiBinder<DivElement, UiBinderOne> {
	}

	@UiField
	SpanElement nameSpan;

	public UiBinderOne(String firstName) {
		setElement(uiBinder.createAndBindUi(this));
		nameSpan.setInnerText(firstName);
	}

	public void setName(String name) { nameSpan.setInnerText(name); }
	
}
